CXX = g++

CFLAGS = -Wall -c -g
LIBSVME = -L/root/eudaq/bin

#INC = -I./inc -I/root/eudaq/vme/include -I/root/eudaq/main/include
INC = -I./inc -I/root/eudaq/vme/include -I/root/eudaq/main/include

SRC = ./src
OBJ = ./obj
OBJS = $(OBJ)/ModV551.o $(OBJ)/ModV550.o $(OBJ)/hbook.o

all: $(OBJS) ./daq.cc
	$(CXX) $(INC) $^ $(LIBSVME) -lvme -leudaq -lbsd -lm  -o daq.exe

$(OBJ)/%.o: $(SRC)/%.cc
	$(CXX) $(CFLAGS) $(INC) -c $< -o $@
